package com.emergency.db.domain.staff;

import com.emergency.base.domain.BaseEntity;


import javax.persistence.*;

//员工剂量表
@Entity
@Table(name = "bas_staff_dose")
public class StaffDose extends BaseEntity {
    private double dose;//累积剂量

    @OneToOne(targetEntity = Staff.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "staff_id", referencedColumnName = "id")
    private Staff staff;

    public double getDose() {
        return dose;
    }

    public void setDose(double dose) {
        this.dose = dose;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }
}
